package com.bigegg.employee.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.bigegg.employee.mapper.ActivityBoothPostMapper;
import com.bigegg.employee.domain.ActivityBoothPost;
import com.bigegg.employee.service.IActivityBoothPostService;

/**
 * 招聘会展位职位Service业务层处理
 * 
 * @author sun
 * @date 2022-08-15
 */
@Service
public class ActivityBoothPostServiceImpl implements IActivityBoothPostService 
{
    @Autowired
    private ActivityBoothPostMapper activityBoothPostMapper;

    /**
     * 查询招聘会展位职位
     * 
     * @param id 招聘会展位职位主键
     * @return 招聘会展位职位
     */
    @Override
    public ActivityBoothPost selectActivityBoothPostById(Long id)
    {
        return activityBoothPostMapper.selectActivityBoothPostById(id);
    }

    /**
     * 查询招聘会展位职位列表
     * 
     * @param activityBoothPost 招聘会展位职位
     * @return 招聘会展位职位
     */
    @Override
    public List<ActivityBoothPost> selectActivityBoothPostList(ActivityBoothPost activityBoothPost)
    {
        return activityBoothPostMapper.selectActivityBoothPostList(activityBoothPost);
    }

    /**
     * 新增招聘会展位职位
     * 
     * @param activityBoothPost 招聘会展位职位
     * @return 结果
     */
    @Override
    public int insertActivityBoothPost(ActivityBoothPost activityBoothPost)
    {
        return activityBoothPostMapper.insertActivityBoothPost(activityBoothPost);
    }

    /**
     * 修改招聘会展位职位
     * 
     * @param activityBoothPost 招聘会展位职位
     * @return 结果
     */
    @Override
    public int updateActivityBoothPost(ActivityBoothPost activityBoothPost)
    {
        return activityBoothPostMapper.updateActivityBoothPost(activityBoothPost);
    }

    /**
     * 批量删除招聘会展位职位
     * 
     * @param ids 需要删除的招聘会展位职位主键
     * @return 结果
     */
    @Override
    public int deleteActivityBoothPostByIds(Long[] ids)
    {
        return activityBoothPostMapper.deleteActivityBoothPostByIds(ids);
    }

    /**
     * 删除招聘会展位职位信息
     * 
     * @param id 招聘会展位职位主键
     * @return 结果
     */
    @Override
    public int deleteActivityBoothPostById(Long id)
    {
        return activityBoothPostMapper.deleteActivityBoothPostById(id);
    }
}
